MonitorTable = function(element){
	this.element = element;
	this.tid = element.tid;
	this.tlable = element.tlable;
	this.thead = element.thead;
	this.tbody = element.tbody;
};

MonitorTable.prototype = {
		
	/* 获取列数 */
	getColumnCount:function(){
	   return this.thead.length;
	},
	
	/* 获取行数 */
	getRowCount:function(){
		return this.tbody.length;
	},
	
	/* 获取列标示 */
	getColumnID:function(idx){
		return this.thead[idx].id;
	},
	
	/* 获取列值 */
	getColumnValue:function(idx){
		return this.thead[idx].value;
	},
	
	/* 获取字段值 */
	getFieldValue:function(recordIdx,fieldIdx){
		var id = this.thead[fieldIdx].id;
		var value = eval("this.tbody["+recordIdx+"]."+id);
		return value;
	},
	
	/* 获取表格标示 */
	getTableId:function(){
		return this.tid;
	}
};

